<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html style="height:100%">
<head>
<base href="<%=basePath%>">

<title>室内装饰详细</title>
<link rel="stylesheet" href="css/vivo.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="js/bootstrap2/css/bootstrap.min.css">
<link rel="stylesheet" href="js/bootstrap2/css/bootstrap-table.css">
<link rel="stylesheet" href="css/common.css">
<link href="js/select2/select2.min.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="js/webuploader-0.1.5/webuploader.css" />

<script src="js/jquery-1.11.1.js"></script>
<script src="js/bootstrap2/js/bootstrap.min.js"></script>

<script src="js/bootstrap2/js/bootstrap-table.js"></script>
<script src="js/bootstrap2/js/bootstrap-table-zh-CN.js"></script>
<script src="js/select2/select2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="js/webuploader-0.1.5/webuploader.js"></script>
<script type="text/javascript" src="js/layui-v2.1.5/layui/layui.all.js"></script> 
<script type="text/javascript" src="js/sharefunction.js"></script> 
<script type="text/javascript" src="js/form.js"></script> 
<!-- 图片放大 -->
<script src="js/postbird-img-glass/postbird-img-glass.js" ></script>
<style type="text/css">
	/* 上传按钮与文本框对其 */
	div[id^='filePicker']{
		vertical-align:middle;
	}
</style>
<script type="text/javascript">
	var historyStatus=parent.$("#historyStatus").val();//客户是否历史状态
	//客户主键
	var fkcustomerId=$("#customerId",window.parent.document).val();
	//房间主键
	var fkroomId=$("#roomId",window.parent.document).val();
	//装修方案主键,当前页面共用,包括引用的页面
	var fkdschemeId="";
	//施工单位主键,仅用来保存施工单位为编辑状态时的主键
	var fkdunitId="";
	
	//根据变量选择页面进来之后显示哪个选项卡
	function initTab(){
		if(parent.tabToken=="" || parent.tabToken == null){
			$("[role='tablist'] li:eq(0) a").tab("show");
		}else{
			$("[role='tablist'] li:eq("+parent.tabToken+") a").tab("show");
		}
	}
	$(function(){
		initTab();
	});
	
	//本页面重置表单通用方法
	function resetForm(_this){
		$(_this).parents("form")[0].reset();
	}
	//本页面图片放大通用方法,同时隐藏上传按钮与图片删除按钮
	function imgPlus(data){
		$.each(data,function(i,v){
			hideFileBtn(v.id);
			PostbirdImgGlass.init({
		    	domSelector:"#"+v.id+" img",
		    	animation:true,
		    	//height:'80%',
		    	myDocument:window.parent.parent.parent
			});
		});
	}
	//隐藏附件删除按钮
	function hideFileBtn(id){
		$("#"+id+" span.uploadcancel").hide();
	}
	//缩略图上传成功回调
	function successImg(id){
		PostbirdImgGlass.init({
			domSelector : "#"+id+" img",
			animation : true,
			myDocument : window.parent.parent.parent
		});
	}
</script>
</head>

<body>

		<div class="tabbable" style="height: 100%">
		<!-- 单元id隐藏域 -->
		<input id="buildingNumId" taype="text" value="" style="display: none;"  />
			<!-- Nav tabs -->
			<ul class="nav nav-tabs" role="tablist">
				<!--  class="active" 默认选中,下面对应的选项卡也许要加 -->
				<li><a href="#tab2-1" data-toggle="tab">装修审核</a></li>
				<li><a href="#tab2-2" data-toggle="tab">装修巡查</a></li>
				<li><a href="#tab2-3" data-toggle="tab">装修隐检</a></li>
				<li><a href="#tab2-4" data-toggle="tab">装修验收</a></li>
			</ul>

			<!-- Tab panes -->
			<div class="tab-content" style="height: 87%">
				<!-- 装修审核start -->
				<div id="tab2-1" class="tab-pane" style="height: 100%">
					<jsp:include page="../roomInfo-Decorate/decoration-manage.jsp"></jsp:include>
				</div>
				<!-- 装修审核end -->
				<!-- 装修巡查start -->
				<div id="tab2-2" class="tab-pane" style="height: 100%">
					<jsp:include page="decorationManage-list.jsp"></jsp:include>
				</div>
				<!-- 装修巡查end -->
				<!-- 装修隐检start -->
				<div id="tab2-3" class="tab-pane" style="height: 100%">
					<jsp:include page="decorationHidden-list.jsp"></jsp:include>
				</div>
				<!-- 装修隐检end -->
				<!-- 装修验收start -->
				<div id="tab2-4" class="tab-pane" >
				<jsp:include page="../p_renovation/decorationCheck-add.jsp"></jsp:include>
				</div>
				<!-- 装修验收end -->
			</div>
		</div>
</body>
</html>
